package cn.edu.ctbu.datajpa01.webapi;

import cn.edu.ctbu.datajpa01.core.RUtil;
import cn.edu.ctbu.datajpa01.domain.Student;
import cn.edu.ctbu.datajpa01.service.impl.AdministratorImpIService;
import cn.edu.ctbu.datajpa01.service.impl.StudentImpIService;
import cn.edu.ctbu.datajpa01.service.impl.TeacherImpIService;
import cn.edu.ctbu.datajpa01.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/webapi/login")
public class LoginApiController {

    @Autowired
    private StudentImpIService studentImpIService;

    @Autowired
    private TeacherImpIService teacherImpIService;

    @Autowired
    private AdministratorImpIService administratorImpIService;

}

//    @GetMapping("student")
//    public R student(String name, String password) throws Exception {
//
//       Student student= studentImpIService.findByNameAndPassword(name,password);
//        return RUtil.success(student);
//    }

